package com.cheer.ba.constant;

import android.graphics.Color;
import android.os.Environment;

/**
 * 常量
 */
public class Constants {

    /**
     * 默认数值
     */
    public static final int DEFAULTVALUE = -1;

    /**
     * 每页新闻内容的数据是20条
     */
    public static final int PAGESIZE = 5;
    /**
     * 倒计时常量 单位秒
     */
    public static final int COUNTDOWN = 90;

    public static final String CHANNEL_KEY = "UMENG_CHANNEL";

    /**
     * 当前 DEMO 应用的回调页，第三方应用可以使用自己的回调页。
     * <p/>
     * <p>
     * 注：关于授权回调页对移动客户端应用来说对用户是不可见的，所以定义为何种形式都将不影响， 但是没有定义将无法使用 SDK 认证登录。
     * 建议使用默认回调页：https://api.weibo.com/oauth2/default.html
     * </p>
     */
    public static final String REDIRECT_URL = "http://sns.whalecloud.com";


    public final static String STORE_PATH = Environment
            .getExternalStorageDirectory().getAbsolutePath()
            + "/openim/images/";

    /**
     * 友盟
     */
    public static final class UMeng {
        //TODO CHANGED
        public static final String APP_KEY = "58f42c87bbea83085b00012d";
    }

    /**
     * 新浪
     */
    public static final class Sina {
        //TODO CHANGED
        public static final String APP_KEY = "3156554872";
        public static final String APP_SECRET = "a77484e56093eb87eb548592bac547b7";
        public static final String REDIRECT_URL = "http://www.51jiayoula.com/jylWeb/web/";
//        public static final String REDIRECT_URL = "http://sns.whalecloud.com/sina2/callback";
    }

    public static final class QQ {
        //TODO CHANGED
        public static final String APP_ID = "1106010609";
        public static final String APP_KEY = "EuSFZb1m6X74grIo";
    }

    public static final class WeiXin {
        //TODO CHANGED
        public static final String APP_ID = "wx043887f6583b5957";
        public static final String APP_SECRET = "bd4d0466d58b41f4e88396b65566810c";
    }

    public static final class Bugly {
        //TODO CHANGED
        public static final String APP_ID = "dacd5a0c3c";
        public static final String APP_KEY = "9005adad-cab2-450f-835f-37517f17a045";
    }

    public static final class SMSSDK {
        //TODO CHANGED
        public static final String APP_ID = "1c0eca0d28be6";
        public static final String APP_KEY = "f2b56a294f4d0932fb89163adb1ebe55";
    }

    public static final int[] COLOR_SCHEMES = {
            Color.parseColor("#ff33b5e5"),
            Color.parseColor("#ffff4444"),
            Color.parseColor("#ffffbb33"),
            Color.parseColor("#ff99cc00"),
    };
}
